<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta name="language" content="en" />
            <link rel="Shortcut Icon" href="images/lol.ico" type="image/x-icon" />
            <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body  style="background-color: black;">
        <div class="container-fluid">
            <div class="row-fluid" style="margin-top:200px;">
                <div class="span6 offset3" id="logo">
                    <img src="<?php echo Yii::app()->request->baseUrl;?>/images/logo.png">
                </div>
            </div>
            <div class="row-fluid">
                <div class="span4 offset5">
                <?php 
                    CHtml::$afterRequiredLabel = '';
                    $usuario= new UsuariosForm();                    
                    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
                        'id'=>'verticalForm',
                        'action'=>Yii::app()->request->baseUrl.'/login',
                        'enableAjaxValidation'=>true,
                        'enableClientValidation' => true,
                        'clientOptions' => array(
                            'validateOnChange' => false,
                            'validateOnSubmit' => true, 
                        ),                     
                    )); 
                    echo $form->textFieldRow($usuario, 'nombre', array('errorOptions'=>array('class'=>'','style'=>'color:red;margin-left:10px;')));                    
                    echo $form->passwordFieldRow($usuario, 'password', array('errorOptions'=>array('class'=>'','style'=>'color:red;margin-left:10px;'))); 
                ?>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span1 offset5">
                    <?php 
                        $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit','type'=>'primary', 'label'=>'Login', 'size' => 'large')); 
                        $this->endWidget(); 
                    ?>
                </div>
            </div>
        </div>
    </body> 
</html>